package com.ruoyi.purchase.service;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.purchase.domain.Firm;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.SysCity;
import com.ruoyi.system.domain.SysProvince;

import java.util.List;

/**
 *
 */
public interface FirmService extends IService<Firm> {
    /**
     * 查询所有厂商信息
     * @param firm  查询条件
     * @return 厂商信息集合
     */
    public List<Firm> queryList(Firm firm);

    //二级联动
    public List<SysCity> selectCityById(Integer cid);

    public List<SysProvince> selectProv();


    /**
     * 厂商状态修改
     *
     * @param firm 厂商信息
     * @return 结果
     */
    public int changeStatus(Firm firm);


    public Firm selectFirmById(Integer firmId);
}
